home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Technotools
/
Technotools (Chestnut CD-ROM)(1993).ISO
/
lang_c
/
cgraphix
/
kdrawpt.c
< prev
next >
Wrap
C/C++ Source or Header
|
1986-05-12
|
640b
|
35 lines
/* «RM120»«PL99999»«TS4,8,12,16,20,24,28,32,36,40,44,48,52,56,60,64,68,72,76» */
#include <stdio.h>
#define EXTERN extern
#include <typedef.h>
void DrawPoint(xr,yr)
double xr, yr;
{
double x, y;
if (DirectModeGlb)
DP((int)xr,(int)yr);
else {
x = WindowX(xr);
y = WindowY(yr);
if (ClippingGlb) {
if (x >= (X1RefGlb << 3) && x < ((X2RefGlb << 3) + 7)
&& y >= Y1RefGlb && y <= Y2RefGlb)
DP((int)x,(int)y);
}
else
DP((int)x, (int)y);
}
}
int PointDrawn(xr,yr)
double xr, yr;
{
if (DirectModeGlb)
return(PD((int)xr,(int)yr));
else
return(PD(WindowX(xr),WindowY(yr)));
}